home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
TextEvent.java
< prev
next >
Wrap
Text File
|
1998-09-22
|
2KB
|
77 lines
/*
* @(#)TextEvent.java 1.5 98/07/01
*
* Copyright 1995-1998 by Sun Microsystems, Inc.,
* 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Sun Microsystems, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Sun.
*/
package java.awt.event;
import java.awt.AWTEvent;
import java.awt.Event;
/**
* The text event emitted by TextComponents.
* @see java.awt.TextComponent
* @see TextEventListener
*
* @version 1.5 07/01/98
* @author Georges Saab
*/
public class TextEvent extends AWTEvent {
/**
* Marks the first integer id for the range of adjustment event ids.
*/
public static final int TEXT_FIRST = 900;
/**
* Marks the last integer id for the range of adjustment event ids.
*/
public static final int TEXT_LAST = 900;
/**
* The adjustment value changed event.
*/
public static final int TEXT_VALUE_CHANGED = TEXT_FIRST;
/*
* JDK 1.1 serialVersionUID
*/
private static final long serialVersionUID = 6269902291250941179L;
/**
* Constructs a TextEvent object with the specified TextComponent source,
* and type.
* @param source the TextComponent where the event originated
* @id the event type
* @type the textEvent type
*/
public TextEvent(Object source, int id) {
super(source, id);
}
public String paramString() {
String typeStr;
switch(id) {
case TEXT_VALUE_CHANGED:
typeStr = "TEXT_VALUE_CHANGED";
break;
default:
typeStr = "unknown type";
}
return typeStr;
}
}